#pragma once
#include"cocos2d.h"

class Cannon :public cocos2d::CCSprite
{
public:
	Cannon() {}
	virtual ~Cannon(){}
	
	CREATE_FUNC(Cannon);

	bool init();

	void setDrawLine(bool var);

	const bool& getDrawLine() const;
protected:
	virtual void draw(cocos2d::Renderer *renderer, const cocos2d::Mat4& transform, uint32_t flags) override;
	
private:
	bool drawLine;
	cocos2d::DrawNode* m_drawNode;
};
